/**
 * MovementEdit.java
 * 20/05/2011 13:44:46
 */
package model.memento;

import javax.swing.undo.AbstractUndoableEdit;
import javax.swing.undo.CannotRedoException;
import javax.swing.undo.CannotUndoException;

import model.pieces.Piece;

/**
 * @author walber
 * 
 */
public class PieceUndoableEdit extends AbstractUndoableEdit {

	private static final long serialVersionUID = 1564038509010168961L;

	protected final Piece piece;
	protected final MovementDirection direction;

	/**
	 * @param piece
	 * @param direction
	 */
	public PieceUndoableEdit(Piece piece, MovementDirection direction) {
		this.piece = piece;
		this.direction = direction;
	}

	/**
	 * Deshacer un movimiento de la pieza.
	 */
	public void undo() throws CannotUndoException {
	}

	/**
	 * Rehacer un movimiento de la pieza. 
	 */
	public void redo() throws CannotRedoException {
	}

	public boolean canUndo() {
		return true;
	}

	public boolean canRedo() {
		return true;
	}

	public String getPresentationName() {
		return "Move";
	}
}
